import request from '@/utils/request'
 
// 根据坐标点查询 周围矿区
export function selectPolygonsByLocation(data) {
    return request({
        url: '/mine/polygons/selectPolygonsByLocation',
        method: 'post',
        data: data,
    })
}

// 根据 多边形面 坐标集合范围内的矿区
export function selectPolygonsByList(data) {
    return request({
        url: 'mine/polygons/selectPolygonsByList',
        method: 'post',
        data: data,
    })
}
 
// 通过名称/地理位置/发证机关搜索矿业权
export function searchPolygons(query) {
    return request({
        url: '/mine/polygons/searchPolygons',
        method: 'get',
        params: query
    })
}
 